import ApiClient from '../base-api'

const dictItemApi = new ApiClient('/sys/dict-item')

// 根据字典编码查询字典子项
dictItemApi.getListByDictCode = (dictCode) => {
  return dictItemApi.get(`getByDictCode/${dictCode}`)
}

dictItemApi.deleteDictItem = (data) => {
  return dictItemApi.delete('delete', data)
}

export default dictItemApi
